﻿using System;

namespace HelloWorld
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello wwy!");

            int myInteger, ySize = 1;
            string myString;
            myInteger = 17;
            myString = "\"myInteger\"is";
            Console.WriteLine("{0} {1} {2}.", myString, myInteger, ySize);

            double firstNumber, secondNumber;
            string userName;
            Console.WriteLine("Enter your name:");
            userName = Console.ReadLine();
            Console.WriteLine("Welcome {0}!", userName);
            //Console.WriteLine("Now give me a number:");
            /////double.Parse string = convert.todouble 
            //firstNumber = Convert.ToDouble(Console.ReadLine());
            //Console.WriteLine("Now give me another number:");
            //secondNumber = Convert.ToDouble(Console.ReadLine());
            //Console.WriteLine("The sum of {0} and {1} is {2}.", firstNumber, secondNumber, firstNumber + secondNumber);
            //Console.WriteLine("The result of subtracting {0} from {1} to {2}.", firstNumber, secondNumber, firstNumber - secondNumber);
            //Console.WriteLine("The product of {0} and {1} is {2}.", firstNumber, secondNumber, firstNumber * secondNumber);
            //Console.WriteLine("The result of dividing {0} by {1} is {2}.", firstNumber, secondNumber, firstNumber / secondNumber);
            //Console.WriteLine("The remainder after dividing {0} by {1} is {2}.", firstNumber, secondNumber, firstNumber % secondNumber);
            //Console.Write("Type a string : ");
            //string myString1 = Console.ReadLine();
            //for (int i = 0; i < myString1.Length; i++)
            //    if (Uri.IsHexDigit(myString1[i]))
            //        Console.WriteLine("{0} is a hexadecimal digit.", myString1[i]);
            //    else
            //        Console.WriteLine("{0} is not a hexadecimal digit.", myString1[i]);
            //Console.BackgroundColor = ConsoleColor.White;
            Console.WriteLine("input firstnumber:");
            double number1 = Convert.ToDouble(Console.ReadLine ());
            Console.WriteLine("input secondnumber");
            double number2 = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine(number1 + "+" + number2 + "=" + (number2 + number1));
            Console.WriteLine("the result is {0}", number1);
            Console.WriteLine($"{number1}+{number2}={number1+number2}");


        }
    }
}
